We must set the image after calling .update(), because we're passing
clear: true and thus we're removing the image too.
Also, we need to specify an explicit icon size, or St.Icon will use
the default (48px)
https://bugzilla.gnome.org/show_bug.cgi?id=692091
// one of 'image-data' or 'image-path' are specified, we show both an icon and
// a large image.
if (gicon && gimage)
- image = new St.Icon({ gicon: gimage });
+ image = new St.Icon({ gicon: gimage,
+ icon_size: notification.IMAGE_SIZE });
else if (!gicon && gimage)
gicon = gimage;
else if (!gicon)
gicon = this._fallbackIconForNotificationData(hints);
- notification.setImage(image);
-
notification.update(summary, body, { gicon: gicon,
bannerMarkup: true,
clear: true });
+ notification.setImage(image);
if (actions.length) {
notification.setUseActionIcons(hints['action-icons'] == true);